package com.zy.swagger.entity.sys;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (SysRole)实体类
 *
 * @author ZY
 * @date 2021-03-31 22:27:34
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 889373872696201687L;

    /**
     * 系统角色ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    /**
     * 角色拼音名称
     */
    private String name;

    /**
     * 角色中文名称
     */
    private String nameZh;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}